#include<iostream>
using namespace std;

int main(void)
{
    int a = 1;
    int &r = a;

    a = a+4;
    cout<<a<<" "<<r<<endl;
    r = 10;
    cout<<a<<" "<<r<<endl;

    return 0;
}